package io.bluerain.broadcastreceiver.ui;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import io.bluerain.broadcastreceiver.R;

/**
 * Created by foredawn on 15-9-13.
 * 触发消息广播
 */
public class BroadcastActivityTest extends Activity {

    Intent intent;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.broadcast_activity);
        intent = new Intent();
        intent.setAction("io.bluerain.BROADCAST");
        intent.putExtra("msg", "简单的消息");
    }

    public void send(View source) {
        sendBroadcast(intent);
    }
}
